//
//@File    :	3.8_floatnum.cpp
//@Time    :	2021/08/02 16:51:30
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	floating-point types
//

#include <iostream>

int main()
{
    using namespace std;
    cout.setf(ios_base::fixed,ios_base::floatfield);
    float tub = 10.0/3.0;
    double mint = 10.0/3.0;
    const float million = 1.0e6;

    cout<<"tub = "<<tub;
    cout<<", a million tubs = "<<million*tub;
    cout<<", \nand ten million tubs = ";
    cout<<10*million*tub<<endl;

    cout<<"mint = "<<mint<<" and amillion mints = ";
    cout<<million*mint<<endl;
    system("pause");
    return 0;
}